
using AutoMapper;
using WebApp.Companys;
using WebApp.Companys.Dtos;

namespace WebApp.CustomDtoAutoMapper
{


    public class CompanyMapProfile : Profile
    {
        public CompanyMapProfile()
        {
            // Role and permission
            CreateMap<Company, CompanyListDto>();
            CreateMap<CompanyListDto, Company>();

            CreateMap<CompanyEditDto, Company>();
            CreateMap<Company, CompanyEditDto>();

            //
            CreateMap<Company, CompanyTreeDto>();

          
        }
    }
}
